<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>添加文章</title>
<script src="ckeditor/ckeditor.js"></script>
<%@include file="/WEB-INF/jsp/public/commons.jspf"%>
</head>
<body>
 <ol class="breadcrumb">
  <li><a href="home_innerCentre.action">首页</a></li>
  <li><a href="news_list.action">文章管理</a></li>
  <li class="active">文章添加</li>
</ol>
<div class="well well-lg">
	<s:form action="news_add">
	    <s:hidden name="id"></s:hidden>
	  <div class="form-group">
		<label for="name">标题</label>
		<s:textfield type="text" name="title" cssClass="form-control" />
	  </div>
	  <div class="form-group">
		<label for="name">类型</label>
		<select class="form-control" name="type">
            <option value="0">最新要闻</option>
            <option value="1">常见问题</option>
            <option value="2">政策法规</option>
       </select>

	  </div>
	  <div class="form-group">
	    <label for="name">内容</label>
		<textarea name="content" rows="10" cols="80">
               
            </textarea>
            <script>
                CKEDITOR.replace( 'content',{
					customConfig: '${pageContext.request.contextPath }/script/articleConfig.js'
				});
            </script>
	  </div>
	   <div class="form-group">
			 <a href="javascript:history.go(-1);" class="btn btn-info">返回</a>
			 <button type="submit" class="btn btn-success">保存</button>
	   </div>
	 </s:form>
</div>
</body>
</html>